package com.dsjy.yf.address.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dsjy.yf.address.entity.dataobject.ExclusivezoneDO;

import java.util.List;

/**
 * @author whj
 * @version 1.0
 * @date 2021-02-05 9:36
 */
public interface ExclusivezoneService {

    /**
     * 查找所有类行政区划
     *
     * @return
     */
    List<ExclusivezoneDO> searchExclusivezoneAll();

    /**
     * 根据区划代码查找类行政区划
     *
     * @param parentCode
     * @return
     */
    List<ExclusivezoneDO> searchExclusivezoneWithParentCode(Integer parentCode, Boolean flag);

    /**
     * 增删改
     *
     * @param operate
     * @param exclusivezoneDO
     * @return
     */
    Integer addUpdDel(String operate, ExclusivezoneDO exclusivezoneDO);

    /**
     * 增加类行政区划
     *
     * @param exclusivezoneDO
     * @return
     */
    Integer addExclusivezone(ExclusivezoneDO exclusivezoneDO);


    /**
     * 更新修改
     *
     * @param exclusivezoneDO
     * @return
     */
    Integer updExclusivezone(ExclusivezoneDO exclusivezoneDO);

    /**
     * 分页查询
     *
     * @param pageNum
     * @param pageSize
     * @param wrapper
     * @return
     */
    IPage searchWithPage(Integer pageNum, Integer pageSize, QueryWrapper wrapper);
}
